#ifndef MUCMAS_USER_INC_SEL_H
#define MUCMAS_USER_INC_SEL_H

#include <stdint.h>

#define SEL_BEGIN 0
#define SEL_POINT 0
#define SEL_LINE 1
#define SEL_RECT 2
#define SEL_FILL 3
#define SEL_END 3

typedef struct {
  uint8_t into : 1;     // 是否进入子页面
  uint8_t outo : 1;     // 是否退出当前页面页面
  uint8_t mode : 2;
  uint8_t save : 1;
  uint8_t      : 3;
  uint8_t x : 5;
  uint8_t y : 3;
  uint8_t idx;
}Sel_HandleTypeDef;

void Sel_Init(void* handle, uint8_t idx);
void Sel_Reinit(void* handle);
void Sel_InitShow(void* handle);
void Sel_ShowColor(void* handle);
void Sel_ShowMode(void* handle);
void Sel_Run(void* handle);

void Sel_M_L(void* handle);
void Sel_M_O(void* handle);
void Sel_U_L(void* handle);
void Sel_U_W(void* handle);
void Sel_U_O(void* handle);
void Sel_D_L(void* handle);
void Sel_D_W(void* handle);
void Sel_D_O(void* handle);
void Sel_L_L(void* handle);
void Sel_L_W(void* handle);
void Sel_L_O(void* handle);
void Sel_R_L(void* handle);
void Sel_R_W(void* handle);
void Sel_R_O(void* handle);
#endif
